package com.sdjzu.wanfuying.androiddesign.mvvm.student;

import android.widget.Button;

import com.sdjzu.wanfuying.androiddesign.BR;

import androidx.databinding.ViewDataBinding;

public class StudentViewModel {
    private Student student = new Student("2014000" + (System.currentTimeMillis() % 10), Math.random() + "");

    public StudentViewModel() {
    }

    public Student getStudent() {
        return student;
    }

    public void setStudent(Student student) {
        this.student = student;
    }

    public void refresh() {
        student.setName(Math.random() + "");
    }

}
